﻿/*Author：Lary Pan(itolmqj123@gmail.com)
 *Date  ：2016/7/20
 *Tips  ：统一管理Manager，包括Core Mgr和Logic Mgr
 * */

public class CMgrList
{
    private IManager[] instArr;

    public CMgrList() 
    {
        instArr = new IManager[] {
            //Core Mgr
            ConfigManager.Instance,    
            EventManager.Instance,
            UIManager.Instance,
			TipsManager.Instance,
            LoadingMgr.Instance,
            DataManager.Instance,


            //Logic Mgr
            CKMgr.Instance,
        };
    }

    public void Init()
    {
        for (int i = 0; i < instArr.Length; i++)
        {
            instArr[i].Init();
        }
    }

    public void Destroy()
    {
        for (int i = instArr.Length - 1; i >= 0; i--)
        {
            instArr[i].DoDestroy();
        }
    }
}
